home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
catn
/
linsert.n
< prev
next >
Wrap
Text File
|
1994-09-20
|
1KB
|
67 lines
linsert(n) Tcl Built-In Commands
_________________________________________________________________
NAME
linsert - Insert elements into a list
SYNOPSIS
linsert _l_i_s_t _i_n_d_e_x _e_l_e_m_e_n_t ?_e_l_e_m_e_n_t _e_l_e_m_e_n_t ...?
_________________________________________________________________
DESCRIPTION
This command produces a new list from _l_i_s_t by inserting all
of the _e_l_e_m_e_n_t arguments just before the _i_n_d_e_xth element of
_l_i_s_t. Each _e_l_e_m_e_n_t argument will become a separate element
of the new list. If _i_n_d_e_x is less than or equal to zero,
then the new elements are inserted at the beginning of the
list. If _i_n_d_e_x is greater than or equal to the number of
elements in the list, then the new elements are appended to
the list.
KEYWORDS
element, insert, list
Tcl 1